package com.it.mydream.Service.imp;

import com.it.mydream.Bean.MsgBoard;
import com.it.mydream.Dao.MsgBoardDao;
import com.it.mydream.Service.MsgBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MsgBoardServiceImp implements MsgBoardService {
    @Autowired
    private MsgBoardDao msgBoardDao;

    @Override
    public void addMsgBoard(MsgBoard msgb) {
        msgBoardDao.insertMsgBoard(msgb);
    }
    @Override
    public List<MsgBoard> GetMsgBoards() {
        return msgBoardDao.selectMsgBoards();
    }
}
